home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gCurrentPos, gNbItem
- if getAt(gNbItem, 2) <= 6 then
- return
- end if
- set inc to 0.0
- if the mouseV < SpriteTop(20) then
- repeat while the mouseDown
- if rollOver(19) and (the mouseV < SpriteTop(20)) then
- set inc to inc + 0.19999999999999998
- if (getAt(gCurrentPos, 2) - integer(inc)) < 2 then
- setAt(gCurrentPos, 2, 2)
- else
- setAt(gCurrentPos, 2, getAt(gCurrentPos, 2) - integer(inc))
- end if
- SetWindow2(2, 7)
- end if
- end repeat
- else
- if the mouseV > SpriteBottom(20) then
- repeat while the mouseDown
- if rollOver(19) and (the mouseV > SpriteBottom(20)) then
- set inc to inc + 0.19999999999999998
- if (getAt(gCurrentPos, 2) + integer(inc)) > (getAt(gNbItem, 2) - 6) then
- setAt(gCurrentPos, 2, getAt(gNbItem, 2) - 6)
- else
- setAt(gCurrentPos, 2, getAt(gCurrentPos, 2) + integer(inc))
- end if
- SetWindow2(2, 8)
- end if
- end repeat
- end if
- end if
- ActiveField(2)
- end
-